package com.example.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.web.config.annotation.DataSource;
import com.example.web.config.enums.DataSourceEnum;
import com.example.web.entity.Girl;
import com.example.web.mapper.GirlMapper;
import com.example.web.service.GirlService;
@Service
public class GirlServiceImpl implements GirlService{

	@Autowired
	GirlMapper girlMapper;

	@DataSource(DataSourceEnum.DB2)
	@Override
	public Girl getGirl(Integer id) {
		return girlMapper.getGirl(id);
	}
	
	
	
}
